<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <input type="button" value="点我" onclick="jumpToTest()"/>
    <script>
        function jumpToTest(){
            window.location.href = encodeURI("paramEncode?username=王涛");
        }
    </script>
</body>
</html>